TARGET = main
MCU    = atmega32
CC     = avr-gcc
AS     = avr-as
AR     = avr-ar
OBJCOPY = objcopy


CFLAGS  =-mmcu=$(MCU) -Wall 
LDFLAGS =-mmcu=$(MCU)

$(TARGET): irmp.o lcd.o taster.o ShiftRegister.o $(TARGET).o

$(TARGET).hex : $(TARGET)
	 objcopy -j .data -j .text -O ihex $< $@

load: $(TARGET).hex
	avrdude -p m32 -c usbasp -U flash:w:$(TARGET).hex -v

clean:
	rm -f *.o  *.hex $(TARGET)

